<%--
  Created by IntelliJ IDEA.
  User: Tang'ya'kang
  Date: 2023/5/12
  Time: 0:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>EditBook</title>
</head>
<%@ include file="head.jsp"%>
<body>
<div class="card">
    <div class="card-body">
        <h5 class="card-title" align="center">修改图书</h5>
        <div class="card-body">
            <form action="./manage/bookServlet" method="get">
                <input type="hidden" name="id" value="${book.id}">
                <input type="hidden" name="action" value="EditBook">
                <input type="hidden" name="Page" value="${param.Page}">
                <input type="hidden" name="user_name" value="${param.user_name}">
                <input type="hidden" name="merchant_id" value="${param.merchant_id}">
                <div class="form-group">
                    <label> 图 书 名 称 </label>
                    <input type="text" class="form-control" id="bookname" name="name" value="${book.name}">
                </div>
                <div class="form-group">
                    <label> 作 者 </label>
                    <input type="text" class="form-control" id="username" name="author" value="${book.author}">
                </div>
                <div class="form-group">
                    <label> 价 格 </label>
                    <input type="text" class="form-control" id="price" name="price" value="${book.price}">
                </div>
                <div class="form-group">
                    <label> 销 量 </label>
                    <input type="text" class="form-control" id="sales" name="sales" value="${book.sales}">
                </div><div class="form-group">
                <label> 库 存 </label>
                <input type="text" class="form-control" id="stock" name="stock" value="${book.stock}">
            </div>
                <button type="submit" class="btn btn-primary">修 改</button>
            </form>
        </div>

    </div>
    <%@ include file="/html/Foot.jsp"%>
</div>
</body>
</html>
